<template>
  <div id="content">
    <div>
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <h1 class="Flex JC">系统介绍</h1>
        </div>
        <div>
          <el-button @click="get()">获取user表数据</el-button>
        </div>
      </el-card>
    </div>
  </div>
</template>
<script>
import axios from "axios"
export default {
  data () {
    return {
    };
  },

  methods: {
    get() {
      axios.get('http://127.0.0.1/user').then(res=>{
          console.log(res.data);
      }).catch(err=>{
          console.log("获取数据失败" + err);
      })
    }
  }
}
</script>